import router from '@/router'

export function back() {
  if (window.history.state?.back) {
    router.back()
  } else {
    router.push('/home')
  }
}
